MDButton – A 2 button dialog window. Yes/No, Ok/Cancel, etc.


Creation: MDButton_New(caption$, ybutton$, nbutton$, x, y, pixelwidth)


caption$ - Button window caption text.

ybutton$ - The text that is displayed on the left button.

nbutton$ - The text that is displayed on the right button.

x – Pixel X coordinate for the top left corner of the button.

y – Pixel Y coordinate for the top left corner of the button.

pixelwidth – The width of the button dialog in pixels.


Functions:

MDButton_ClearSelected(index)

Clears the pressed status of the button dialog.


MDButton_Delete(index)

Deletes the button list.


MDButton_Disable(index)

Disables the button list.


MDButton_Draw(index)

Draws the button list to screen.


MDButton_Enable(index)

Enables the button list.


MDButton_GetSelected(index)

Returns whether button is pressed status. 0=no ; 1,2=button pressed.


MDButton_SetCaption(index, caption$)

Sets the caption text on the button window.